<?php
class dt_monitor extends toba_datos_tabla
{
	function get_listado()
	{
		$sql = "SELECT
			t_m.id_monitor,
			t_m.id_tipo,
			t_m.marca,
			t_m.modelo,
			t_m.detalle,
			t_i.id_terminal as id_terminal_nombre
		FROM
			monitor as t_m	LEFT OUTER JOIN terminal as t_i ON (t_m.id_terminal = t_i.id_terminal)
		ORDER BY t_m.id_terminal";
		return toba::db('fce')->consultar($sql);
	}

}

?>